package com.example.online_retailers.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName trade_info
 */
@TableName(value ="trade_info")
@Data
public class TradeInfo implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 钱包id
     */
    private Integer walletId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 支出金额
     */
    private BigDecimal payMoney;

    /**
     * 收入金额
     */
    private BigDecimal incomeMoney;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}